/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: 
 * License Type: Evaluation
 */
package cn.imvc.app.entities;

import java.io.Serializable;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Entity
@org.hibernate.annotations.Proxy(lazy=false)
@Table(name="notice")
@org.hibernate.annotations.Cache(usage=org.hibernate.annotations.CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Notice implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Notice() {
	}
	
	@Column(name="id", nullable=false)	
	@Id	
	@GeneratedValue(generator="CN_IMVC_APP_ENTITIES_NOTICE_ID_GENERATOR")	
	@org.hibernate.annotations.GenericGenerator(name="CN_IMVC_APP_ENTITIES_NOTICE_ID_GENERATOR", strategy="native")	
	private int id;
	@NotNull
	@Column(name="title", nullable=true, length=255)	
	private String title;
	@Size(min = 2, max = 14)
	@Column(name="description", nullable=true, length=255)	
	private String description;
	@NotNull
	@Column(name="author", nullable=true, length=255)	
	private String author;
	
	@Column(name="content", nullable=true)	
	private String content;
	
	@Column(name="files", nullable=true, length=255)	
	private String files;
	
	@Column(name="created_at", nullable=true)	
	private java.sql.Timestamp created_at;
	
	@Column(name="updated_at", nullable=true)	
	private java.sql.Timestamp updated_at;
	

	public void setId(int value) {
		this.id = value;
	}
	
	public int getId() {
		return id;
	}
	
	public int getORMID() {
		return getId();
	}
	
	public void setTitle(String value) {
		this.title = value;
	}
	
	public String getTitle() {
		return title;
	}
	
	public void setDescription(String value) {
		this.description = value;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setAuthor(String value) {
		this.author = value;
	}
	
	public String getAuthor() {
		return author;
	}
	
	public void setContent(String value) {
		this.content = value;
	}
	
	public String getContent() {
		return content;
	}
	
	public void setFiles(String value) {
		this.files = value;
	}
	
	public String getFiles() {
		return files;
	}
	
	public void setCreated_at(java.sql.Timestamp value) {
		this.created_at = value;
	}
	
	public java.sql.Timestamp getCreated_at() {
		return created_at;
	}
	
	public void setUpdated_at(java.sql.Timestamp value) {
		this.updated_at = value;
	}
	
	public java.sql.Timestamp getUpdated_at() {
		return updated_at;
	}
	
	public String toString() {
		return String.valueOf(getId());
	}
	
}
